<?php

/**
 * Generated Model class.
 */
class Base_UserRow extends Db_Row
{

    /**
     * Set new value for user.id column in current Row.
     * 
     * @param int $IdFromUserRow
     * @return void
     */
    public function setId($Id)
    {
        $this->__set("id", $Id);
    }

    /**
     * Return user.id column value in current Row.
     * 
     * @return int
     */
    public function getId()
    {
        return $this->__get("id");
    }

    /**
     * Set new value for user.vk_id column in current Row.
     * 
     * @param int $VkIdFromUserRow
     * @return void
     */
    public function setVkId($VkId)
    {
        $this->__set("vk_id", $VkId);
    }

    /**
     * Return user.vk_id column value in current Row.
     * 
     * @return int
     */
    public function getVkId()
    {
        return $this->__get("vk_id");
    }

    /**
     * Set new value for user.name column in current Row.
     * 
     * @param varchar $NameFromUserRow
     * @return void
     */
    public function setName($Name)
    {
        $this->__set("name", $Name);
    }

    /**
     * Return user.name column value in current Row.
     * 
     * @return varchar
     */
    public function getName()
    {
        return $this->__get("name");
    }

    /**
     * Set new value for user.last_name column in current Row.
     * 
     * @param varchar $LastNameFromUserRow
     * @return void
     */
    public function setLastName($LastName)
    {
        $this->__set("last_name", $LastName);
    }

    /**
     * Return user.last_name column value in current Row.
     * 
     * @return varchar
     */
    public function getLastName()
    {
        return $this->__get("last_name");
    }

    /**
     * Set new value for user.groups column in current Row.
     * 
     * @param text $GroupsFromUserRow
     * @return void
     */
    public function setGroups($Groups)
    {
        $this->__set("groups", $Groups);
    }

    /**
     * Return user.groups column value in current Row.
     * 
     * @return text
     */
    public function getGroups()
    {
        return $this->__get("groups");
    }

    /**
     * Set new value for user.access_token column in current Row.
     * 
     * @param varchar $AccessTokenFromUserRow
     * @return void
     */
    public function setAccessToken($AccessToken)
    {
        $this->__set("access_token", $AccessToken);
    }

    /**
     * Return user.access_token column value in current Row.
     * 
     * @return varchar
     */
    public function getAccessToken()
    {
        return $this->__get("access_token");
    }

    /**
     * Set new value for user.created column in current Row.
     * 
     * @param datetime $CreatedFromUserRow
     * @return void
     */
    public function setCreated($Created)
    {
        $this->__set("created", $Created);
    }

    /**
     * Return user.created column value in current Row.
     * 
     * @return datetime
     */
    public function getCreated()
    {
        return $this->__get("created");
    }

    /**
     * Set new value for user.modified column in current Row.
     * 
     * @param timestamp $ModifiedFromUserRow
     * @return void
     */
    public function setModified($Modified)
    {
        $this->__set("modified", $Modified);
    }

    /**
     * Return user.modified column value in current Row.
     * 
     * @return timestamp
     */
    public function getModified()
    {
        return $this->__get("modified");
    }

    /**
     * Set new value for user.sex column in current Row.
     * 
     * @param int $SexFromUserRow
     * @return void
     */
    public function setSex($Sex)
    {
        $this->__set("sex", $Sex);
    }

    /**
     * Return user.sex column value in current Row.
     * 
     * @return int
     */
    public function getSex()
    {
        return $this->__get("sex");
    }

    /**
     * Return dependent rowset from table TurnPost where TurnPost.UserId reference to
     * user table
     * 
     * @param Db_Select $select FromTurnPost
     * @return Zend_Db_Table_Rowset_Abstract
     */
    public function getTurnPostRowsetByUserId($select = null)
    {
        return $this->findDependentRowset('TurnPostPeer', null, $select);
    }

    /**
     * Return dependent rowset from table User2group where User2group.UserId reference
     * to user table
     * 
     * @param Db_Select $select FromUser2group
     * @return Zend_Db_Table_Rowset_Abstract
     */
    public function getUser2groupRowsetByUserId($select = null)
    {
        return $this->findDependentRowset('User2groupPeer', null, $select);
    }

    /**
     * Return many2many rowset from table Groups via User2group
     * 
     * @param Db_Select $select From Groups
     * @return Zend_Db_Table_Rowset_Abstract
     */
    public function getGroupsRowsetByUser2group($select = null)
    {
        return $this->findManyToManyRowset(GroupsPeer::getInstance(), User2groupPeer::getInstance(), null, null, $select);
    }


}

